package com.ruoyi.celoan.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.celoan.entity.DalianDataReportKeyEntity;
import com.ruoyi.celoan.mapper.EcDalianDataReportKeyMapper;
import com.ruoyi.celoan.service.IEcDalianDataReportKeyService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class EcDalianDataReportKeyServiceImpl
        extends ServiceImpl<EcDalianDataReportKeyMapper, DalianDataReportKeyEntity>
        implements IEcDalianDataReportKeyService {
    private static final Logger log = LoggerFactory.getLogger(EcDalianDataReportKeyServiceImpl.class);

    public DalianDataReportKeyEntity selectEntity(String app_key) {
        QueryWrapper<DalianDataReportKeyEntity> wrapper = new QueryWrapper();
        wrapper.eq("app_key", app_key);
        DalianDataReportKeyEntity entity = (DalianDataReportKeyEntity) ((EcDalianDataReportKeyMapper) this.baseMapper).selectOne((Wrapper) wrapper);
        return entity;
    }

    public void updateEntity(DalianDataReportKeyEntity entity) {
        ((EcDalianDataReportKeyMapper) this.baseMapper).updateById(entity);
    }
}


/* Location:              D:\tuodayun\workspace\work\celoan-third-data-report-service-2.0.0-SNAPSHOT.jar!\BOOT-INF\classes\com\celoan\service\impl\EcDalianDataReportKeyServiceImpl.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */
